<script setup name="App" lang="ts">
import { onMounted, ref } from 'vue';
import Child from './Child.vue';
import { IPerson } from './types/index'
const cmpRef = ref<InstanceType<typeof Child> | null>(null)

onMounted(() => {
  cmpRef.value?.changeCount(3)
})

const p: IPerson = {
  name: 'ifer',
  age: 18,
  address: '武汉'
}

</script>
<template>
  <Child ref="cmpRef" />
</template>
